<?php

namespace app\admin\controller;
use  app\common\controller\DBase;
use app\order\logic\OrderWebHookLogic;
use  think\facade\Request;
use  app\admin\logic\TrackLogic;
use  app\admin\logic\TestLogic;
use  think\App;
class Tiktok extends DBase
{

    /**
     * @desc     webhooks
     * @date     2024-04-08
     */
    public function webhooks(){
        $data   = $this->request->post();
        $res    = (new OrderWebHookLogic())->orderStatusChange($data);
        return $this->jsonMessage(200, '操作成功',$res);
    }


    /**
     * @desc     webhooks_track
     * @date     2024-05-z9
     */
    public function webhooks_track(){
        $data   = $this->request->post();
        $res    = (new OrderWebHookLogic())->webhooks_track($data);
        return $this->jsonMessage(200, '操作成功',$res);
    }


    /**
     * @desc   shopify数据清洗
     * @author xx
     * @date 2024-07-10
     */
    public function shopifyChangePru(){
        $data  = $this->request->post();
        $res   = (new OrderWebHookLogic())->shopifyChangePru($data);
        return $this->jsonMessage(200, true, "操作成功!", $res);
    }



    /**
     * @desc   shopify数据清洗
     * @author xx
     * @date 2024-07-10
     */
    public function shopify_change(){
        $data         = $this->request->post();
        $res          = (new TestLogic())->shopify_change($data);
        return $this->jsonMessage(200, true, "操作成功!", $res);
    }



}